<%@ page import="com.wzy.Jdbc封装.pojo.News_user" %>
<jsp:useBean id="user" class="com.wzy.level.user.userServiceImpl.userServiceImpl"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>增、改获取id对应单个对象信息</title>
</head>
<body>
<%--<%--%>
<%--    String sid = request.getParameter("id");--%>
<%--    String sstate = request.getParameter("state");--%>
<%--    if(sid!=null && sid!="" && sstate!=null && sstate!=""){--%>
<%--        int id = Integer.parseInt(sid);--%>
<%--        int state = Integer.parseInt(sstate);--%>
<%--        News_user news_user = user.selectById(id);--%>
<%--        session.setAttribute("user",news_user);--%>
<%--        session.setAttribute("state",state);--%>

<%--        request.getRequestDispatcher("user_form.jsp").forward(request,response);--%>
<%--    }--%>
<%--%>--%>

</body>
</html>
